#pragma once
#include <stdio.h>
#include <string.h>
#include <stdarg.h>

//Log level
#define LOG_LEVEL_NONE     0
#define LOG_LEVEL_INFO     1
#define LOG_LEVEL_WARN     2
#define LOG_LEVEL_ERRO     3


#define LOG_LEVEL LOG_LEVEL_ERRO




// 发送buff
#define BUFF_SIZE 1024

//////////////////////////////////////
void logInit(void);


void logInfo(char *fmt, ...);


void logWarn(char *fmt, ...);


void logError(char *fmt, ...);



